// import { ShaohuoPersonService } from 'services/Api'
// import store from 'store'

export const tableConfig = {
  colunms: [
    {
      label: '用户名',
      prop: 'nick_name',
      sortable: true
    }, {
      label: '手机号',
      prop: 'mobile',
      sortable: true
    // }, {
    //   label: '捎货用户类型',
    //   prop: 'shaohuo_name',
    //   sortable: true
    }, {
      label: 'VIP期限',
      prop: 'vip',
      sortable: true
    }, {
      label: '账号余额',
      prop: 'balance',
      sortable: true
    }, {
      label: '冻结余额',
      prop: 'frozen_balance',
      sortable: true
    }, {
      label: '用户提现状态',
      prop: 'is_withdraw',
      sortable: true
    }, {
      label: '状态',
      prop: 'status',
      sortable: true
    }, {
      label: '注册时间',
      prop: 'create_time',
      sortable: true
    }
  ]
}

export const searchConfig = [
  {
    name: '模糊查询',
    key: 'search',
    type: 'input',
    placeholder: '请填写查询关键词',
    value: '',
    isCanCommonSearch: true
  // }, {
  //   name: '用户类型',
  //   key: 'type',
  //   type: 'select',
  //   placeholder: '请选择用户类型',
  //   asyncItems: {
  //     getAsyncItems: () => {
  //       return ShaohuoPersonService.shaohuoUserType({ acc_id: store.state.acc_id })
  //     },
  //     asyncItemsHandler: res => {
  //       return res.list.map(i => {
  //         return { label: i.name, value: i.ust_id }
  //       })
  //     }
  //   },
  //   value: '',
  //   isCanCommonSearch: true
  }, {
    name: 'Vip',
    key: 'vip',
    type: 'select',
    placeholder: '请选择Vip',
    items: [
      { label: '是', value: '1' },
      { label: '否', value: '-1' }
    ],
    value: '',
    isCanCommonSearch: true
  }, {
    name: '用户状态',
    key: 'status',
    type: 'select',
    placeholder: '请选择用户状态',
    items: [
      { label: '有效', value: '1' },
      { label: '禁用', value: '0' }
    ],
    value: '',
    isCanCommonSearch: true
  }, {
    name: '能否提现',
    key: 'is_withdraw',
    type: 'select',
    items: [
      { label: '是', value: '0' },
      { label: '否', value: '1' }
    ],
    value: '',
    isCanCommonSearch: true
  }, {
    name: '注册时间',
    key: [ 'start_time', 'end_time' ],
    placeholder: '请选择配送类型',
    type: 'datetimerange',
    value: []
  }
]
